home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / VideoEqu.a < prev   
Encoding:
Text File  |  1992-01-29  |  5.9 KB  |  163 lines  |  [TEXT/MPS ]

  1. ; Version: 3.3
  2. ; Created: Friday, October 20, 1989 at 10:11:40 PM
  3. ;
  4. ; File: VideoEqu.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1986-1991
  8. ; All Rights Reserved
  9. ;
  10. ;--------------------------------------------------------------------
  11.  
  12.     IF &TYPE('__IncludingVideoEqu__') = 'UNDEFINED' THEN
  13. __IncludingVideoEqu__    SET    1
  14. ;
  15. ; Video sResource parameter Id's
  16. ;
  17.  
  18. mBaseOffset       EQU         1                         ;Id of mBaseOffset.
  19. mRowBytes         EQU         2
  20. mBounds           EQU         3
  21. mVersion          EQU         4
  22. mHRes             EQU         5
  23. mVRes             EQU         6
  24. mPixelType        EQU         7
  25. mPixelSize        EQU         8
  26. mCmpCount         EQU         9
  27. mCmpSize          EQU         10
  28. mPlaneBytes       EQU         11
  29. ;* mTable EQU 12
  30. ;* mPageCnt EQU 13
  31. mVertRefRate      EQU         14
  32.  
  33.  
  34. mVidParams        EQU         1                         ;Video parameter block id.
  35. mTable            EQU         2                         ;Offset to the table.
  36. mPageCnt          EQU         3                         ;Number of pages
  37. mDevType          EQU         4                         ;Device Type
  38.  
  39.  
  40. ;
  41. ; Video sResource List Id's
  42. ;
  43.  
  44. oneBitMode        EQU         128                       ;Id of OneBitMode Parameter list.
  45. twoBitMode        EQU         129                       ;Id of TwoBitMode Parameter list.
  46. fourBitMode       EQU         130                       ;Id of FourBitMode Parameter list.
  47. eightBitMode      EQU         131                       ;Id of EightBitMode Parameter list.
  48. sixteenBitMode  EQU         132                       ;Id of SixteenBitMode Parameter list.
  49. thirtyTwoBitMode  EQU         133                       ;Id of ThirtyTwoBitMode Parameter list.
  50.  
  51. firstVidMode        EQU            128                        ; If we ever decide to add/drop a modes
  52. secondVidMode        EQU            129                        ;    in a particular card, it makes more
  53. thirdVidMode        EQU            130                        ;    sense to name the modes in an ordinal
  54. fourthVidMode        EQU            131                        ;    fashion rather than in a cardinal
  55. fifthVidMode        EQU            132                        ;    one.  (The RBV equates do this.) <14>
  56. sixthVidMode        EQU            133
  57.  
  58. spGammaDir        EQU            64
  59. spVidNamesDir        EQU            65                        ; <12>
  60.  
  61. ;
  62. ; Control Codes
  63. ;
  64.  
  65. cscReset              EQU         0
  66. cscKillIO            EQU            1                        ; <15>
  67. cscSetMode            EQU         2
  68. cscSetEntries         EQU         3
  69. cscSetGamma            EQU            4                        ; <12>
  70. cscGrayPage           EQU         5
  71. cscGrayScreen        EQU            5                        ; This is what C&D 2 calls it. <12>
  72. cscSetGray            EQU         6
  73. cscSetInterrupt        EQU            7                        ; <12>
  74. cscDirectSetEntries    EQU            8                        ; <12>
  75. cscSetDefaultMode    EQU            9                        ; <12>
  76.  
  77. ;
  78. ; Status Codes
  79. ;
  80.  
  81. cscGetMode            EQU         2
  82. cscGetEntries         EQU         3
  83. cscGetPageCnt         EQU         4
  84. cscGetPages            EQU            4                        ; This is what C&D 2 calls it. <12>
  85. cscGetPageBase        EQU         5
  86. cscGetBaseAddr        EQU            5                        ; This is what C&D 2 calls it. <12>
  87. cscGetGray            EQU            6                        ; <12>
  88. cscGetInterrupt        EQU            7                        ; <12>
  89. cscGetGamma            EQU            8                        ; <12>
  90. cscGetDefaultMode    EQU            9                        ; <12>
  91.  
  92.  
  93. csGTable          EQU         0                         ; [long] pointer to gamma table
  94. csTable           EQU         0                         ; [long] pointer to CLUT
  95. csStart           EQU         4                         ; [word] entry start number
  96. csCount           EQU         6                         ; [word] entry count to change
  97.  
  98. ;
  99. ; mVidParams block
  100. ;
  101.  
  102. VPBlock           RECORD      0                         ;Video Parameters block.
  103. vpBaseOffset      DS.L        1                         ;Offset to page zero of video RAM (From minorBaseOS).
  104. vpRowBytes        DS.W        1                         ;Width of each row of video memory.
  105. vpBounds          DS.W        4                         ;BoundsRect for the video display (gives dimensions).
  106. vpVersion         DS.W        1                         ;PixelMap version number.
  107. vpPackType        DS.W        1                         ;
  108. vpPackSize        DS.L        1                         ;
  109. vpHRes            DS.L        1                         ;Horizontal resolution of the device (pixels per inch).
  110. vpVRes            DS.L        1                         ;Vertical resolution of the device (pixels per inch).
  111. vpPixelType       DS.W        1                         ;Defines the pixel type.
  112. vpPixelSize       DS.W        1                         ;Number of bits in pixel.
  113. vpCmpCount        DS.W        1                         ;Number of components in pixel.
  114. vpCmpSize         DS.W        1                         ;Number of bits per component
  115. vpPlaneBytes      DS.L        1                         ;Offset from one plane to the next.
  116. vpBlockSize       EQU         *
  117.                   ENDR
  118.  
  119.  
  120.  
  121. VDSetEntryRecord  RECORD      0
  122. csTable           DS.L        1                         ; ^ColorSpec - (long) Pointer to an array of color specs
  123. csStart           DS.W        1                         ; INTEGER - (word) Which spec in array to start with, or -1
  124. csCount           DS.W        1                         ; INTEGER - (word) Number of color spec entries to set
  125.                   ENDR
  126.  
  127. VDPageInfo        RECORD      0
  128. csMode            DS.W        1                         ; INTEGER - (word) mode within device
  129. csData            DS.L        1                         ; LONGINT - (long) data supplied by driver
  130. csPage            DS.W        1                         ; INTEGER - (word) page to switch in
  131. csBaseAddr        DS.L        1                         ; Ptr - (long) base address of page 
  132.                   ENDR
  133.  
  134. VDSizeInfo        RECORD      0
  135. csHSize           DS.W        1                         ; INTEGER - (word) desired/returned h size
  136. csHPos            DS.W        1                         ; INTEGER - (word) desired/returned h position
  137. csVSize           DS.W        1                         ; INTEGER - (word) desired/returned v size
  138. csVPos            DS.W        1                         ; INTEGER - (word) desired/returned v position
  139.                   ENDR
  140.  
  141. VDSettings        RECORD      0
  142. csParamCnt        DS.W        1                         ; INTEGER - (word) number of params 
  143. csBrightMax       DS.W        1                         ; INTEGER - (word) max brightness
  144. csBrightDef       DS.W        1                         ; INTEGER - (word) default brightness
  145. csBrightVal       DS.W        1                         ; INTEGER - (word) current brightness
  146. csCntrstMax       DS.W        1                         ; INTEGER - (word) max contrast 
  147. csCntrstDef       DS.W        1                         ; INTEGER - (word) default contrast 
  148. csCntrstVal       DS.W        1                         ; INTEGER - (word) current contrast 
  149. csTintMax         DS.W        1                         ; INTEGER - (word) max tint 
  150. csTintDef         DS.W        1                         ; INTEGER - (word) default tint 
  151. csTintVal         DS.W        1                         ; INTEGER - (word) current tint 
  152. csHueMax          DS.W        1                         ; INTEGER - (word) max hue
  153. csHueDef          DS.W        1                         ; INTEGER - (word) default hue
  154. csHueVal          DS.W        1                         ; INTEGER - (word) current hue
  155. csHorizDef        DS.W        1                         ; INTEGER - (word) default horizontal
  156. csHorizVal        DS.W        1                         ; INTEGER - (word) current horizontal
  157. csHorizMax        DS.W        1                         ; INTEGER - (word) max horizontal
  158. csVertDef         DS.W        1                         ; INTEGER - (word) default vertical 
  159. csVertVal         DS.W        1                         ; INTEGER - (word) current vertical 
  160. csVertMax         DS.W        1                         ; INTEGER - (word) max vertical 
  161.                   ENDR
  162.  
  163.     ENDIF    ; ...already included